home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak Vol A-4
/
(Vol A-4) Vol. A4.iso
/
Games
/
loa_and_the_island.swf
/
scripts
/
DefineSprite_870
/
frame_8
/
PlaceObject2_812_1
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2008-03-17
|
756b
|
23 lines
onClipEvent(enterFrame){
if(_root.paused == false)
{
if(_global.redkey == true and _global.bluekey == true and _global.yellowkey == true and _global.greenkey == true and _global.blackkey == true and (this.hitTest(_root.level.sprite._x + _root.level._x + 50,_root.level.sprite._y + _root.level._y - 30,true) or this.hitTest(_root.level.sprite._x + _root.level._x - 50,_root.level.sprite._y + _root.level._y - 30,true)))
{
open = true;
}
if(open == true and _currentframe < _totalframes)
{
play();
}
if(_currentframe == _totalframes)
{
this.swapDepths(0);
removeMovieClip(this);
}
}
if(_root.paused == true)
{
stop();
}
}